home *** CD-ROM | disk | FTP | other *** search
/ Aminet 31 / Aminet 31 (1999)(Schatztruhe)[!][Jun 1999].iso / Aminet / util / pack / codecs_library.lha / Codecs / Developer / include / libraries / codecs.h
C/C++ Source or Header  |  1999-02-16  |  1KB  |  63 lines

  1. /*
  2.  *      $VER: codecbase.h 1.0 (24.1.99)
  3.  *
  4.  *      definition of ClassBase
  5.  *
  6.  *      (C) Copyright 1999 Marcel de Wit
  7.  *      All Rights Reserved.
  8.  */
  9.  
  10. #ifndef LIBRARIES_CODECS_H
  11. #define LIBRARIES_CODECS_H
  12.  
  13. #ifndef EXEC_LIBRARIES_H
  14. #include <exec/libraries.h>
  15. #endif
  16.  
  17. #ifndef DOS_DOS_H
  18. #include <dos/dos.h>
  19. #endif
  20.  
  21. #ifndef INTUITION_CLASSES_H
  22. #include <intuition/classes.h>
  23. #endif
  24.  
  25. #ifndef CODECS_CODEC_H
  26. #include <codecs/codec.h>
  27. #endif
  28.  
  29. #define CODECS_NAME "codecs.library"
  30.  
  31. typedef struct {
  32.  
  33.     Object                   *cd_CodecObject;
  34.     struct CodecClassLibrary *cd_CodecClassBase;
  35.  
  36. } Codec;
  37.  
  38. #define TAG_CODECS     0x40000000L
  39.  
  40. /* General codec attributes */
  41. #define CA_SRC_HANDLE  (TAG_USER + TAG_CODECS + 0)
  42. #define CA_DST_HANDLE  (TAG_USER + TAG_CODECS + 1)
  43. #define CA_SRC_TYPE    (TAG_USER + TAG_CODECS + 0)
  44. #define CA_DST_TYPE    (TAG_USER + TAG_CODECS + 1)
  45. #define CA_SRC_SIZE    (TAG_USER + TAG_CODECS + 2)
  46. #define CA_DST_SIZE    (TAG_USER + TAG_CODECS + 3)
  47.  
  48. /* Image codec specific */
  49. #define CA_IMAGEWIDTH  (TAG_USER + TAG_CODECS + 100)
  50. #define CA_IMAGEHEIGHT (TAG_USER + TAG_CODECS + 101)
  51. #define CA_IMAGEDEPTH  (TAG_USER + TAG_CODECS + 102)
  52.  
  53. /* Codec source/destination types */
  54. #define TYPE_RAM       (0)
  55. #define TYPE_DOSHANDLE (1) /* Not supported yet */
  56. #define TYPE_IFFHANDLE (2) /* Not supported yet */
  57. #define TYPE_BUFFER    (3) /* Not supported yet */
  58. #define TYPE_HOOK      (4) /* Not supported yet */
  59. #define TYPE_BITMAP    (5)
  60.  
  61.  
  62. #endif /* LIBRARIES_CODECS_H */
  63.